using System;
namespace YourNamespace
{
public partial class ButtonsDemo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
// Handle Primary Button Click
protected void btnPrimary_Click(object sender, EventArgs e)
{
lblOutput.Visible = true;
lblOutput.Text = "Primary Button clicked!";
}
// Handle Secondary Button Click
protected void btnSecondary_Click(object sender, EventArgs e)
{
lblOutput.Visible = true;
lblOutput.Text = "Secondary Button clicked!";
}
// Handle Success Button Click
protected void btnSuccess_Click(object sender, EventArgs e)
{
lblOutput.Visible = true;
lblOutput.Text = "Success Button clicked!";
}
// Handle Danger Button Click
protected void btnDanger_Click(object sender, EventArgs e)
{
lblOutput.Visible = true;
lblOutput.Text = "Danger Button clicked!";
}
}
}